package com.zz.xapp

import com.scwang.smartrefresh.layout.SmartRefreshLayout
import com.scwang.smartrefresh.layout.footer.ClassicsFooter
import com.scwang.smartrefresh.layout.header.ClassicsHeader
import com.zz.framework.core.BaseApp
import com.zz.framework.core.config.GlobalSetting
import org.greenrobot.eventbus.EventBus
import kotlin.properties.Delegates


/**
 * Copyright © 2020 zanezhao All rights reserved.
 * Created on 2020/3/13 10:09 PM.
 * @version: V1.0
 */
class App : BaseApp() {
    companion object {
        var context: App by Delegates.notNull()
        init {
            SmartRefreshLayout.setDefaultRefreshFooterCreator { context, layout -> ClassicsFooter(context) }
            SmartRefreshLayout.setDefaultRefreshHeaderCreator { context, layout -> ClassicsHeader(context) }
        }

    }
    override fun onCreate() {
        super.onCreate()
        context = this
    }
}

//fun <T> T.hello(m:T.()->Boolean)=m()

